package com.black.cat.seed.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import javax.validation.constraints.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 角色表
 *
 * @author blackcat
 * @since 2020-07-21
 */
@Data
@TableName("sec_role")
@ApiModel(description = "角色表")
public class Role implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull()
    @Null()
    private Long id;

    @ApiModelProperty(value = "角色名")
    @NotBlank
    private String name;

    @ApiModelProperty(value = "描述")
    private String description;

    @ApiModelProperty(value = "创建时间")
    @NotNull
    private Long createTime;

    @ApiModelProperty(value = "更新时间")
    @NotNull
    private Long updateTime;

}
